package com.ymatou.paygetway.parameter;

import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;

import com.ymt.base.BaseBean;

public class ApplePayRefundNotifyBean extends BaseBean {
	/*
	orderId=201606300000002736&
	signature=hQx58GySo/VyHKDUIzx9vOW8dFCA3QBDOBlIGZoKU4vh/8ycVb5L2xY66QIYP0hj7vH2qyE64pbol8qZ92gUB2rbeZ8YbktGyifeKDRM2EgTLSvu4NnnbkhATIlqb0FAuRHmtZTmZ/7bhG13NuwyWjFdyha7aWkWCa7oYZWYpDs=&
	merId=308310053994237&
	currencyCode=156&
	txnAmt=11800&
	respCode=00
	*/
	private String signature;// 000201
	private String orderId;// 17050410190438490
	private String merId;// 78591936
	private String currencyCode;// 101
	private String txnAmt;// 156
	private String respCode;// 01
	
	 public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getCurrencyCode() {
		return currencyCode;
	}

	public void setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
	}

	public String getTxnAmt() {
		return txnAmt;
	}

	public void setTxnAmt(String txnAmt) {
		this.txnAmt = txnAmt;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	/**
     * 实体类生成map
     * @return
	 * @throws Exception 
     */
    public Map<String, String> genMap() throws Exception{
        try {
            Map<String, String> map = BeanUtils.describe(this);
            if(map.containsKey("class")){
                map.remove("class");
            }
            return map;
        }catch(Exception ex){
            throw new Exception(this.getClass().getSimpleName() + ".genMap exception", ex);
        }
    }

}
